<ix-page-header>
  <ix-search-input1 [value]="filterString" (search)="onListFiltered($event)"></ix-search-input1>

  <button
    *ixRequiresRoles="requiredRoles"
    mat-button
    color="primary"
    ixTest="pull-image"
    (click)="doAdd()"
  >
    {{ 'Pull Image' | translate }}
  </button>
</ix-page-header>

@if (selectedImages.length) {
  <div class="batch-actions-toolbar">
    <div class="title">
      <strong>{{ 'Batch Operations' | translate }}</strong>
    </div>
    <div class="actions">
      <button
        *ixRequiresRoles="requiredRoles"
        mat-button
        ixTest="delete"
        (click)="doDelete(selectedImages)"
      >
        <ix-icon name="mdi-delete"></ix-icon>
        {{ 'Delete' | translate }}
      </button>
    </div>
  </div>
}

<ix-table
  class="table"
  [ix-table-empty]="!(dataProvider.currentPageCount$ | async)"
  [emptyConfig]="emptyService.defaultEmptyConfig(dataProvider.emptyType$ | async)"
>
  <thead
    ix-table-head
    [columns]="columns"
    [dataProvider]="dataProvider"
  ></thead>
  <tbody
    ix-table-body
    [columns]="columns"
    [dataProvider]="dataProvider"
    [isLoading]="!!(dataProvider.isLoading$ | async)"
  ></tbody>
</ix-table>
<ix-table-pager [dataProvider]="dataProvider"></ix-table-pager>
